
/**
 * Prism is the abstract class for all prisms.  It has methods to
 * manipulate the three variables of a prism: width, height, and depth.
 */
public abstract class Prism implements ThreeDShape {
    //instance variables
    private double width;
    private double height;
    private double depth;
    //getter methods
    public double getWidth() {
        return width;
    }
    public double getHeight() {
        return height;
    }
    public double getDepth() {
        return depth;
    }
    //setter methods
    public void setWidth(double w) {
        width = w;
    }
    public void setHeight(double h) {
        height = h;
    }
    public void setDepth(double d) {
        depth = d;
    }
}
    